package com.example.wisdomclassroomapi.infrastructure.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.wisdomclassroomapi.domain.entity.RecordStudentLearnEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Package: com.example.wisdomclassroomapi.infrastructure.mapper
 * @Description: <Mapper接口>
 * @Author: scholes
 * @CreateDate: 2022-04-19
 * @UpdateUser: scholes
 * @UpdateDate: 2022-04-19
 * @UpdateRemark: <>
 * @Version: 1.0
 */
public interface RecordStudentLearnMapper extends BaseMapper<RecordStudentLearnEntity> {

    @Select("SELECT SUM(duration) AS count1 FROM record_student_learn ${ew.customSqlSegment}")
    Long count(@Param(Constants.WRAPPER) Wrapper wrapper);

}
